            <div id="page-subheader">
                <div class="wrapper clearfix">

                    <nav id="sub-nav">
                        <ul>
                            <li><a href="index.php?x=users">Users</a></li>
							<li class="active"><a href="index.php?x=search">Search</a></li>
                        </ul>
                    </nav>
                </div>
            </div>
        </header>
        
        <section id="content">
            <div class="wrapper">
                <section class="grid_6 first top">
                    <div class="columns leading">
                        <div class="grid_6 first"><? if(isset($_POST['search'])){?>
                            <table class="datatable sortable selectable paginate full">
                                <thead>
                                    <tr>
                                        <th width="25">ID</th>
                                        <th>Username</th>
                                        <th>Email</th>
                                        <th>Actions</th>
                                    </tr>
                                </thead>
								<tfoot>
                                    <tr>
                                        <th width="25">ID</th>
                                        <th>Username</th>
                                        <th>Email</th>
                                        <th>Actions</th>
                                    </tr>
                                </tfoot>
                                <tbody>
<?
  $name = $db->EscapeString($_POST['user']);
  $sql = $db->Query("SELECT id,login,email FROM `users` WHERE `login` LIKE '".$name."'");
  for($j=1; $user = $db->FetchArray($sql); $j++)
{
?>	
                                    <tr>
                                        <td><?=$user['id']?></td>
                                        <td><?=$user['login']?></td>
                                        <td><?=$user['email']?></td>
                                        <td><ul class="action-buttons">
                                        <li><a href="index.php?x=users&edit=<?=$user['id']?>" class="action-button" title="Edit User"><span class="user-edit"></span></a></li>
										<li><a href="index.php?x=users&del=<?=$user['id']?>" class="action-button" title="Delete User"><span class="user-delete"></span></a></li></ul></td>
                                    </tr>
<?}?>
                                </tbody>
                            </table><?}else{?>						
						<form id="form" method="post" class="form widget">
                                <header><h2>Search User</h2></header>
                                <section>                 
                                    <fieldset>
                                         <dl>
                                             <dt></dt><dd><label>Username</label><input type="text" name="user" required="required" /></dd>
                                     	</dl>    
                                     </fieldset>
                                     <hr />
                                     <button class="button button-green" type="submit" name="search">Submit</button>
                                     <button class="button button-gray" type="reset">Reset</button>
                                </section>
                            </form><?}?>
                        </div>
                    </div>
                    <div class="clear">&nbsp;</div>
                </section>
				
                <aside class="grid_2 top">
                    <div class="accordion">
                        <header class="current"><h2>Info</h2></header>
                        <section style="display:block">
                            Here you can search users!
                        </section>
                    </div>
                </aside>
                
                <div class="clear"></div>
            </div>
            <div id="push"></div>
        </section>

    </div>
    
    <footer id="page-footer">
        <div id="footer-inner">
            <p class="wrapper">All rights reserved &copy; <a href="http://mafianet.org" target="_blank">MafiaNet</a> <?=date('Y')?></p>
        </div>
    </footer>
</body>
</html>